-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[STORY-642] new api endpoint to handle password reset #1071
[STORY-642] new api endpoint to handle password reset #1071
Conversation
…ssword. This is dependent on the merging / release of the equivalent branch in go-scalingo library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small suggestion but LGTM 👍
Did you ask product about the CLI backward compatibility?
db/users/update_password.go
Outdated
} | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: I like returning the function as soon as possible. In this case, you could return here and the else
is useless. There is less indentation which makes the code easier to read IMO
} | |
} else { | |
} | |
fmt.Printf("User \"%s\" password updated.\n", databaseUser.Name) | |
return nil | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I actually misread the original flow. Your suggestion is absolutely correct. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you ask product about the CLI backward compatibility?
Yes. My question was answered by benjamin in the comments in the [STORY-642] in notion.
It should be (remain) possible to set a user-supplied password using the CLI.
Database user password update uses new API endpoint for generating password.
This is dependent on the merging / release of the equivalent branch in go-scalingo library.
Story 642